package edu.jamestang.yeb.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author JamesTang
 * @date 2021/12/22 11:18
 */

@Data
@NoArgsConstructor
@RequiredArgsConstructor
@Accessors(chain = true)
@TableName("t_politics_status")
@ApiModel(value="PoliticsStatus对象", description="政治面貌")
@EqualsAndHashCode(callSuper = false, of = "name")
public class PoliticsStatus implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "政治面貌")
    @NonNull
    @Excel(name = "政治面貌")
    private String name;
}
